<?php

namespace common\models\forms;
use Yii;
use yii\base\Model;

class Baidu extends Model
{

    /**
     * @var string application name
     */
    public $APP_ID;
    public $name;

    /**
     * @var string admin email
     */
    public $API_KEY;

    /**
     * @var string 
     */
    public $SECRET_KEY;

    /**
     * @inheritdoc
     */
    public function rules(): array
    {
        return [
            [['APP_ID', 'API_KEY','SECRET_KEY','name'], 'required'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels(): array
    {
        return [
            'APP_ID' => Yii::t('app', 'APP_ID'),
            'API_KEY' => Yii::t('app', 'API_KEY'),
            'SECRET_KEY' => Yii::t('app', 'SECRET_KEY'),
            'name'=>'应用名称'
        ];
    }
}
